package com.hdoit.apollo.logical.purchase.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.tennetcn.data.dao.base.IMapper;
import com.tennetcn.data.message.PagerModel;
import com.hdoit.apollo.logical.purchase.model.Purchase;
import com.hdoit.apollo.logical.viewmodel.purchase.PurchaseSearch;
import com.hdoit.apollo.logical.viewmodel.shop.PayStat;

/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年05月23日 09:51:33
 * @comment
 */
@Repository(value="purchaseMapper")
public interface PurchaseMapper extends IMapper<Purchase>{

	Purchase queryModelByKey(@Param("key") String key);

	PayStat queryPayStat(@Param("search") PurchaseSearch search);

	int querySummaryStatCount(@Param("search") PurchaseSearch search);

	List<Purchase> querySummaryStatList(@Param("search")PurchaseSearch search,@Param("pager")PagerModel pagerModel);

}